home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
t_os
/
namegen
/
src
/
wordbuf.c
< prev
Wrap
C/C++ Source or Header
|
1994-06-01
|
468b
|
25 lines
/***** 名前ジェネレータ namegen *****/
/***** wordbuf.c *****/
#include <stdio.h>
#include <stdlib.h>
#include "namegen.h"
/* ワード格納バッファ wordbuf を一個確保する */
/* ret:確保した wordbuf への ptr */
char *get_wordbuf(void){
char *wordbuf;
wordbuf = (char*)malloc(WORDBUF_SIZE);
if (wordbuf == NULL){
error(ERR_OUT_OF_MEMORY, NULL);
}
return wordbuf;
}